<template>
  <div class="sing-song">
    <div class="sing-list">
      <div class="quit" @click="$emit('songs', false)">
        <i></i>
      </div>
      <div class="sing-pic" v-for="(b, index) in best" :key="index">
        <div class="pic">
          <img :src="b.img1v1Url" alt="" />
        </div>
        <div class="singer">
          <span>{{b.name}}</span>
        </div>
      </div>
    </div>
    <SongList @play="$emit('play', $event)" :songlist="songlist" :shownumber="true"></SongList>
  </div>
</template>

<script>
import SongList from '@/components/SongList.vue'
export default {
  components:{SongList},
  props: ["best",'songlist'],
  data(){
    return{
      singersong:[],
    }
  },
  created(){

  },
  methods:{
    async getSinger(){
      let re = await this.axios.get("/artists?id="+this.pid);
      console.log("re",re)
    }
  }
};
</script>

<style lang="less" scoped>
.sing-song {
  .sing-list {
    width: 100%;
    height: 300px;
    position: relative;
    // 退出
    .quit {
      top: 0px;
      left: 0px;
      z-index: 20;
      width: 50px;
      height: 50px;
      display: flex;
      border-radius: 50%;
      position: absolute;
      align-items: center;
      background: white;
      justify-content: center;
      // background: url("../assets/退出.svg") no-repeat;
      // background-size: cover;
      & > i {
        width: 30px;
        height: 30px;
        z-index: 20;
        display: inline-block;
        background: url("../assets/退出.svg") no-repeat;
        background-size: cover;
      }
    }
    // 明星图片
    .sing-pic {
      width: 100%;
      height: 100%;
      position: relative;
      .pic {
        width: 100%;
        height: 100%;
        & > img {
          width: 100%;
          height: 100%;
        }
      }
      .singer{
        position: absolute;
        top: 255px;
        left: 25px;
        color: white;
        font-size: 16px;
        font-family: 宋体;
      }
    }
  }
}
</style>